A generalised approach to the stability analysis of PWM feedback control systems