Synthesis of well-defined functional crystals by high temperature gas-phase reactions