Resonant Properties of Electron Gas in n-InSb and Graphene Layers in Magnetic Fields for THz Multilayered Dielectric-Plasma-like Metamaterials