Spin-Based Semiconductor Heterostructure Devices