Support-theoretic subgraph preconditioners for large-scale SLAM and structure from motion