Practical stability criterion and its application to digital simulation