Dogs may have domesticated themselves because they really liked snacks, model suggests