Direct and Indirect Estimation of a Sine Wave Amplitude by the Energy-Based Method