Optimizing the route for medium temperature-activated carbon derived from agro-based waste material