Wavelet packet transform for RMS values and power measurements