Nilpotent energies in liquid crystal theory