Abnormal oscillatory conductance and strong odd–even dependence of a perfect spin-filtering effect in a carbon chain-based spintronic device