Site occupancy and valence state of optically active cobalt ions in yttrium iron garnet.