Second-order interference of two independent photons with different spectra