Modelling of impurity deposition in gaps of castellated surfaces with the 3D-GAPS code