Scaling on-chip photonic neural processors using arbitrarily programmable wave propagation