Mathematical modelling of cytokine-mediated immune response and autoimmunity