Using Lie symmetries in epidemiology