Barack Obama wins re-election