Barack Obama greets supporters after being declared the winner of the presidential contest