System Identification and Adaptive Control for Grid-Connected Single-Phase AC Inverters