An economic evaluation framework for cryptocurrency mining operation in microgrids