Multimode decomposition of spatially growing perturbations in a two-dimensional boundary layer