The Effect of Energy on the Cost of Mining For Coins