IBM to buy Netezza for $1.7bn in cash