Mining is more profitable than speculation in cryptocurrencies