Reactive power generated by energy storage batteries