Stepwise pyrolysis for raw material recovery from plastic waste