Pair Formation and Tetrahedral Coordination of Co2+ in AgCl and AgBr