Digital RMS energy meters, relays and transducers