Ferromagnetic half-metallicity in YBaCo2O6 and spin-state driven metal–insulator transition