How did former European colonies gain independence?