Science has found a brilliant new use for your kitchen scraps