Mechanisms of adaptation and speciation : an experimental study using artificial life