Modeling of twisted/warped magnetospheric configurations using the general deformation method