Gibbs Distributions and STDP: An study case on recurrent Neural Networks