Multi-frequency observations and spectral analysis of two gigahertz-peaked spectra pulsars