Dynamic nuclear polarization by electrical spin injection in ferromagnet-semiconductor heterostructures