Macroscopic current induced boundary conditions for Schrödinger-type operators