https://coolsabryps.blogspot.com/2020/01/reading-pdf-matlab-code-for-kronig.html