Surface modification boosts exciton extraction in confined layered structure for selective oxidation reaction