Resonance tuning of two-photon absorption microcavities for wavelength-selective pulse monitoring