State integrals, the quantum dilogarithm and knots