A Simulation Platform And Methodology For Optimal Sizing Of Battery Energy Storage Systems