Compact DIN Rail Single Phase Multi-Function Energy Meter with Pulse Output for Modern Energy Monitoring