A Theory of Resonant Photoemission in Copper Halides