Mechanism-based mathematical modelling of dynamics of the hypothalamic-pituitary-adrenal axis