The J-equation on toric manifolds