What are the key factors that influence flowering in mango trees?