Text this: Analysis and design of single phase voltage-frequency converter with optimized pi controller