Mid infrared photonic integrated circuits