Comparative spectra and efficiencies of ions laser-accelerated forward from the front and rear surfaces of thin solid foils