Measurements of inclusive jet spectra in pp and central Pb-Pb collisions at sNN =5.02 TeV