How is endometrial cancer diagnosed?