Why can capacitors compensate voltage