Self-consistent estimation of inter-residue protein contact energies based on an equilibrium mixture approximation of residues | Synapse