In situ and ex situ spectroscopic monitoring of biochar's surface functional groups