Photo- and thermo-chemical vapor generation of mercury