Hybrid ferromagnet/semiconductor nanostructures: spin-valve effect and extraordinary magnetoresistance