Twisted Fourier-Mukai functors