The Kronig-Penney model extended to arbitrary potentials via numerical matrix mechanics | Synapse