Tutorial: a computational framework for the design and optimization of peripheral neural interfaces