Optimization and characterization of rare-earth-doped photonic-crystal-fiber amplifier using genetic algorithm