Sizing of battery energy storage for end-user applications under time of use pricing