Global stability for multi-group SIR and SEIR epidemic models with age-dependent susceptibility