Impact of batteries in the hosting capacity of a grid with photovoltaic generation