Counting efficiency and detection limit of condensation nuclei counters for submicrometer aerosols. I: Theoretical evaluation of the influence of heterogeneous nucleation and wall losses