Long-range elastic interactions and equilibrium shapes of curved ferroelastic domain walls in crystals