A comparative study of the modulated structures of some A2BX4 compounds