Nuclear modification factor of D0 mesons in PbPb collisions at sNN=5.02TeV