Global exponential stability and existence of periodic solution of Hopfield-type neural networks with impulses