Magnetic coupling in biradicals, binuclear complexes and wide gap insulators: a survey of ab-initio wave function and density functional theory approaches