Quantum electrodynamical formulation of photochemical acid generation and its implications on optical lithography