battery energy storage system design pdf