Net-metering and time-of-use tariffs with small scale embedded generation