Synthesis of organic molecules via spray-drying