Magnetochemical investigation of the second coordination sphere of transition metals in glasses