A study of the magnetic critical scattering from the longitudinally modulated antiferromagnets thulium and erbium