Bidiagonalization of oscillatory matrices