Computing Information Rates Of Finite-State Models With Application To Magnetic Recording