Resonant tunneling, eigenvalue and energy band calculation for potential and periodic potential structures