Prebiotic processes in planetary atmospheres