2D Materials for Nonlinear Photonics and Electro‐Optical Applications