Gravar-mail: Optimal sizing and energy scheduling of isolated microgrid considering the battery lifetime degradation