Valence state driven site preference in the quaternary compound Ca5MgAgGe5: an electron-deficient phase with optimized bonding.