Certain investigations on fault detection and classification of transformer and three phase inverter by using optimization techniques