How are menstrual problems diagnosed?