Terahertz And Mid-Infrared Photodetectors Based On Intersubband Transitions In Novel Materials Systems