Quasisymmetric embeddings of metric spaces