Topological defects in topological insulators and bound states at topological superconductor vortices