Lagrangian representation of microphysics in numerical models. Formulation and application to cloud geo-engineering problems