Stabilization of the Schrödinger equation with a delay term in boundary feedback or internal feedback