Dislocation energies in anisotropic crystals