Breakdown of coherence in resonant tunneling through double-barrier heterostructures