Analysis of cooperation and electron delocalization in intermolecular hydrogen bonds