Wafer scale fabrication of silicon nitride based photonic integrated circuit