Development of diagnostic techniques for open switch and short switch failure of cascaded multilevel inverters