On-site treatment of leachates from landfilled wastes