Evaluation of factors affecting accurate measurements of atmospheric CO&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; and CH&amp;lt;sub&amp;gt;4&amp;lt;/sub&amp;gt; by wavelength-scanned cavity ring-down spectroscopy