Modal decomposition of partially coherent flat-topped beams produced by multimode lasers