Routines for the synthesis of Stokes profiles in LTE