Study of the polarization produced by the Zeeman effect in the solar Mg i b lines