GFFD: Generalized free-form deformation with scalar fields