Text this: Optimization of emission cost and economic analysis for microgrid by considering a metaheuristic algorithm-assisted dispatch model