An impulsive model of endocrine regulation with two negative feedback loops*