Calculations of the Electronic Structure of Colour Centres in Ionic Crystals (I)