The influence of membrane heterogeneity on the solute retention