Stochastic and deterministic models for nucleation and growth in non-isothermal and/or non-isobaric powder transformations