The magnetic recording channel: noise, distortion and overwrite