Assessment of basis sets for density functional theory-based calculations of core-electron spectroscopies