Fundamentals of Smart Grid Systems