Soft Threshold Ternary Networks