Double-heterojunction photodetector for midinfrared applications: theoretical model and experimental results