Optimal placement and sizing of battery energy storage using the genetic algorithm