Batteries play a role in microgrids