Voltage and power sources in a circuit simulator