How endometriosis can be a cause of infertility?