One-Dimensional Inversion of Full Waveforms using a Genetic Algorithm