Text this: Linear and nonlinear resonant properties of electron gas in n-InSb and graphene layers in terahertz range in bias magnetic fields