Optical discontinuous fringe metrology by using a genetic algorithm