Measurement of isolated photon production in pp and PbPb collisions at root s(NN)=2.76 TeV