Use of the Beta function to quantify effects of photoperiod on flowering and leaf number in rice