The environmental dependence of the stellar mass function at z ∼ 1 Comparing cluster and field between the GCLASS and UltraVISTA surveys