Michael Phelps leads NBC to Olympic ratings victory