Knowledge-based model of hydrogen-bonding propensity in organic