Pattern-assisted stacking colloidal quantum dots for photonic integrated circuits