Adaptive prony method for the calculation of power-quality indices in the presence of nonstationary disturbance waveforms