Raiders stumble in second half, lose to Cowboys 31-24