erase modeling for NVMs