Modelling of the pellet deposition profile and ∇B-induced drift displacement in non-axisymmetric configurations