Spin-polarized density functional calculations based on local scaling transformations