The free energy as a function of the order parameter in nematic liquid crystals