Reselling or marketplace mode for an online platform: the choice between cap-and-trade and carbon tax regulation