Yu–Shiba–Rusinov states in the charge-density modulated superconductor NbSe2