The autoimmune bases of infertility and pregnancy loss