Joint-stochastic-approximation Random Fields with Application to Semi-supervised Learning