Quasiconformal mappings and applications to some linear and nonlinear elliptic problems