Measurement of the Zγ production cross section in pp collisions at 8 TeV and search for anomalous triple gauge boson couplings