How is the voltage of the power supply for a series circuit calculated?