On the modelling and design of environmentally friendly biochar production for soil application