On the diagnostic of magnetic fields in sunspots through the interpretation of stokes parameters profiles