Electrical detection of spin transport in lateral ferromagnet-semiconductor devices