ProfitMax: Optimizing Blockchain Mining for Energy Efficiency and Profitability | IEEE Conference Publication | IEEE Xplore