Entanglement dynamics after quantum quenches in generic integrable systems