Hybrid Pyrolysis and Gasification Process and System for Converting Wastes