Studies of jet quenching using isolated-photon+jet correlations in PbPb and pp collisions at