Genetic algorithms for the non-parametric inversion of gravitational lenses