Deep photonic network platform enabling arbitrary and broadband optical functionality