Elastic invariants in crystal theory