Modeling of the immune response: a systems approach