Using a carbon tax to implement energy deregulation