Genetic algorithms in design and characterization of rare earth doped fiber amplifiers