Hilma af Klint conducted séances, communed with spirits, and founded abstraction long before her male contemporaries would take credit for it, a new exhibition reveals