Homeostasis as a proportional–integral control system