Improved half-metallic ferromagnetism of transition-metal pnictides and chalcogenides calculated with a modified Becke-Johnson exchange potential