Stability of Alkaline-Earth Hydrides