Boundary conditions at a thin membrane for normal diffusion, classical subdiffusion, and slow subdiffusion processes