The assessment of endometrial pathology and tubal patency: a comparison between the use of ultrasonography and X‐ray hysterosalpingography for the investigation of infertility patients