On the periodic intermediate long wave equation