Ion model and equilibrium configuration of the gaseous alkaline-earth dihalides