Dark sector spectroscopy at the ILC