Deep learning with coherent nanophotonic circuits