Theory of resonant tunneling in heterostructures.