Hyperfine interactions and spin transport in ferromagnet-semiconductor heterostructures