Discrete approximations of the Perona-Malik equation: convergence and classification of the equilibria