Nanolithography using molecular optics