Temporal interfaces by instantaneously varying boundary conditions