Theory of F centres in alkaline earth fluorides