Isochronous classical systems and quantum systems with equally spaced spectra