A new treatment of the growing wave problem in surface optics