Coordination and valence state of transition metal ions in alkali-borate glasses