Existence of minimal energy configurations of nematic liquid crystals with variable degree of orientation