Improved approximation algorithms for two variants of the stable marriage problem with ties