Molecule, layered medium and method for creating a pattern