Inverse problems by Genetic Algorithms: application to the photothermal depth profiling