AC and DC power metering and monitoring systems