Center manifolds and normal forms in epidemic models