Ab initio investigation of the surface properties of dispenser B-type and scandate thermionic emission cathodes