Multigroup CN method—II. Albedo and transmission for a slab