Major networks declare Obama victory