On the ground state of crystals with dipole-dipole and exchange interactions