Boundary Conditions for the Dynamical Equations of Quantum Mechanics