2D materials as a new platform for photonic applications