The role of speculation in science