A matrix continued-fraction solution for the anharmonic-oscillator eigenvalues