Western Digital plans to spin off the flash memory business