Analysis of JET polarimeter with a propagation code based on the stokes formalism