Text this: Near optimal harmonic elimination pulse width modulation algorithm using quadratic approximation equations