Low-energy in-gap states of vortices in superconductor–semiconductor heterostructures