Impregnating agents containing mixtures of inorganic and organic compounds