Transverse-momentum-dependent gluon distribution functions in a spectator model