A Bidding System for Peer-to-Peer Energy Trading in a Grid-connected Microgrid. (December 2016)