Third‐order nonlinearities and coherent transient grating effects of narrow‐gap semiconductors in the midinfrared