Modeling of an active terahertz imaging system in brownout conditions.