Framework for complex quantum state generation and coherent control based on on-chip frequency combs