Effect of process conditions on properties of biochar from agricultural residues