Energy from wastes