A novel technique to measure the gas composition near the surface of microdroplets