Computer simulation studies of anisotropic systems; IX: the Mayer-Saupe theory for nematic liquid crystals and the molecular-field approximation