Search for pair and single production of new heavy quarks that decay to a Z boson and a third-generation quark in pp collisions at sqrt{s}=8 TeV with the ATLAS detector