Andrew Lincoln will leave The Walking Dead after playing Rick Grimes for nine seasons