Exploring the internal dynamics of the GnRH pulse generator using a combination of mathematical modelling and optogenetic stimulation