Stochastic Dynamics of Three-State Neural Networks