Arbitrary mode number boundary-layer theory for nonideal toroidal Alfvén modes