Structural approach of customized EDFA for optical packets