I would suggest you look at these two articles. They are quite technical but explain a lot on low-level.
- Peter Gutmann, Data Remanence in Semiconductor Devices
- Peter Gutmann, Secure Deletion of Data from Magnetic and Solid-State Memory
If you are looking also for a counter-measure then I would suggest