Text this: Analysis and Design Guidelines for Current Control Loops of Grid-Connected Converters Based on Mathematical Models