Basics of Power Systems Analysis