Spin-valve effect in double-barrier systems with noncollinearly polarized magnetic barriers: linear response regime