Search for Higgs boson decays to a photon and a Z boson in pp collisions at root s=7 and 8 TeV with the ATLAS detector