Test for Properness using Residue Calculus