Influence of production conditions on the yield and environmental stability of biochar