The method of critical regions for two dimensional integrals and its application to a problem of antenna theory