Machine Learning in Physical Design for 2D and 3D Integrated Circuits