Deep Learning for Photonic Design and Analysis: Principles and Applications