Understanding molecular scale effects during photoresist processing