Deep learning for inverse design of photonic devices