Sex and the Soul: Science, Religion, and Non-binary Gender in the Nineteenth-Century United States