Dynamics of electron entanglement in semiconductor nanostructures