Cristiano Ronaldo's retirement from international football marks the end of an extraordinary chapter in Portuguese football.