Western Digital is spinning off its flash memory business as sales decline