Effect of bubble size distribution on the enrichment and collapse in foams