Influence of short-range three-ion interactions on polymorphism and elastic constants of alkaline-earth-chalcogenide crystals