2D materials integrated with metallic nanostructures: fundamentals and optoelectronic applications