Time dependent simulation of pellet evaporation in tokamak plasmas