An inertia theorem for tridiagonal matrices and a criterion of wall on continued fractions