A study on NLTS and write precompensation in shingled magnetic recording