Measurements of solar magnetic fields through polarimetric observations