Quasiextremal distance domains and extension of quasiconformal mappings