Structure of transition-metal—oxygen-vacancy pair centers