Supramolecular hierarchy among halogen and hydrogen bond donors in light-induced surface patterning