The association between weight gain at different stages of pregnancy and risk of gestational diabetes mellitus