Treatment of non-adiabatic Hamiltonians by matrix continued fractions. I. Electronic two-level system coupled to a single vibrational mode