Modeling of the Lower Ionosphere during Solar X-ray Flares of Different Classes