Joint excitation probability for two harmonic oscillators in one dimension and the Mott problem