Text this: Techno-economic optimization and modelling of grid-connected photovoltaic and battery energy storage system