Quantum Gaussian wells and barriers