Self-assembly in the synthesis of ceramic materials and composites