Text this: Optimal battery and fuel cell operation for energy management strategy in MG