Twisted deformation quantization of algebraic varieties