A decade of surveys on attitudes to data sharing highlights three factors for achieving open science