Optimal capacity allocation of multiple energy storage considering microgrid cost