Understanding Membrane Fouling in Terms of Surface Free Energy Changes