Spin-valve structures with NiO pinning layers