Euclid preparation. XXVII. A UV-NIR spectral atlas of compact planetary nebulae for wavelength calibration