Energy Management System for the Photovoltaic Battery Integrated Module