Analysis of time-of-flight spectra of ions emitted from laser-generated plasmas