Invention that makes renewable energy from rotting veg wins James Dyson prize