Cost optimal sizing of smart buildings' energy system components considering changing end-consumer electricity markets. (15th October 2017)