Abundances and search for vertical stratification in the atmospheres of four HgMn stars