Non-equilibrium isotopic and elemental fractionation during diffusion-controlled crystal growth under static and dynamic conditions