Instanton and Heegaard Floer homologies of surgeries on torus knots