Unsteady diffusion in barrier membranes