Embedded Power and Energy Measurement System Based on an Analog Multiplier