Understanding Acid Reaction and Diffusion in Chemically Amplified Photoresists: An Approach at the Molecular Level