Microscopic mechanisms of spin-dependent electric polarization in 3d oxides