Computing the rotational viscosity of nematic liquid crystals by an atomistic molecular dynamics simulation