Computer studies of silicon carbide gallium nitride and indium phosphide based IMPATT devices operating in MM wave and terahertz region and corresponding studies on the photo sensitivity of the devices