Spin valves with antiparallel-pinned flux compensation layer