Search for a Higgs boson decaying into a Z and a photon in pp collisions at root s=7 and 8 TeV