An analogue of the Paley-Wiener theorem for the Fourier transform on certain symmetric spaces