Formation of condensation aerosols under rapidly changing environmental conditions: Theory and method of calculation