Optimization of walnut oil production