Photovoltaic battery MATLAB simulation model