Optimizing rooftop photovoltaic distributed generation with battery storage for peer-to-peer energy trading. (15th October 2018)