Measurement of inclusive jet cross sections in pp and PbPb collisions at sqrt(s_NN) = 2.76 TeV