Two dimensional ordering in liquid crystals: the SmF and SMI phases