Innovation and upgrading in global production networks