A polynomial quantum algorithm for approximating the Jones polynomial