Emerging electronic states at boundaries and domain walls in quantum materials