Ab initio calculations of an M center on the AgBr(100) surface. Formation, electronic structure and spectrum of a primary Ag2 cluster