Electronic structure of half-metallic ferromagnets and spinel ferromagnetic insulators