Three phase smart energy meter