Optimal Power Management for Grid-Connected Microgrid Considering Modelling of Different Electricity Cost and Battery Degradation Cost