Lightfields behind amplitude and phase masks applications in high resolution proximity lithography