What are the primary differences between NAND flash memory and NOR flash memory in terms of write, read, and erase operations?