Measurement of the Groomed Jet Radius and Momentum Splitting Fraction in pp and Pb-Pb Collisions at √sNN =5.02 TeV