Phase transitions of alkaline-earth metal sulfides under pressure