Global dynamics for a class of age-infection HIV models with nonlinear infection rate