Exact frequency-domain reconstruction for thermoacoustic tomography. I. Planar geometry | Synapse