Smart Grid Functionality of a PV-Energy Storage System