An investigation of the effects of X-rays on undoped and on hydrogen doped alkaline earth fluorides