how is ovulation related to menstruation​