On a posteriori error estimator for primal, equilibrium and mixed approximation of diffusion equations