Thermoacoustic tomography with correction for acoustic speed variations.