Similar Items: Impact of galaxy cluster environment on the stellar mass function of galaxies