Prediction and control of stem elongation and flowering in poinsettia and Easter lily