generator and transformer protection