Bidding strategy of a microgrid in the deregulated electricity market