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