Local spin analysis and chemical bonding