Segregation processes in vesiculating crystallizing magmas