Modelling of natural attenuation in soil and groundwater