A 24-year-old woman is evaluated for a 3-month history of amenorrhea accompanied by cyclic pelvic pain. Preceding the onset of amenorrhea, she had a recent dilatation and curettage to remove retained products of conception after a first-trimester spontaneous abortion. Her personal and family medical history is unremarkable. She takes no medications.

On physical examination, she is afebrile. Blood pressure is 110/60 mm Hg, pulse rate is 68/min, and respiration rate is 16/min. BMI is 24. Pelvic examination reveals a nontender, mobile uterus.

Laboratory studies:

Estradiol

<80 pg/mL (293.6 pmol/L)

Follicle-stimulating hormone

6.2 mU/mL (6.2 U/L)

Luteinizing hormone

4.1 mU/mL (4.1 U/L)

Prolactin

Normal

Thyroid-stimulating hormone

Normal

Urine human chorionic gonadotropin

Negative

Which of the following is the most appropriate diagnostic test to perform next?