High-voltage prepaid metering boxes for accurate energy measurement and load control in power systems