Deep learning in optics and photonics for statistical inference, computing, and inverse design