The self-trapped hole and the self-trapped exciton in alkaline earth flourides