Text this: An Optimal Bidding Strategy of Power and Gas to Operate a Microgrid in Energy Market