Optical studies of intercalated and strongly doped 2D materials