Modeling optical amplification in Er3+-doped LiNbO3 waveguides