Measurement of partial discharges and dielectric losses on rotating machines using damped AC voltages