Optical nonlinearity in mercury telluride