Atomic Energy-levels in Crystals