Real-Time Operation of Residential PV and Battery Systems for Primary Frequency Response