Numerical simulation of unsteady mass transfer by the level set method