Body mass index and weight gain prior to pregnancy and risk of gestational diabetes mellitus.