Regulatory dynamics of network architecture and function in tristable genetic circuit of Leishmania: a mathematical biology approach