K-stabilty and canonical metrics on toric manifolds