Obama takes swing at McCain in acceptance speech