Quantum metamaterials: entanglement of spin and orbital angular momentum of a single photon