Bound states in hybrid superconductor-semiconductor nanostructures