Theory of a Two-Dimensional Ising Model with Random Impurities. I. Thermodynamics | Synapse