IBM to buy HR software firm Kenexa for $1.3 billion