Text this: Modeling and control of photovoltaic stand-alone system using state-space averaging method