All-optical methods and devices for real-time aerosol detection