The evolution of the planetary nebula NGC 6826