A general hydrogen bonding definition based on three-dimensional spatial distribution functions and its extension to quantitative structural analysis of solutions and general intermolecular bonds