Modeling of ion pairs in erbium-doped fiber amplifiers.