Trapped-hole centers in alkaline-earth oxides