What is the role of hysterosalpingogram in infertility?