Domain-wall orientations in ferroelastics