Preservation of logarithmic concavity by the Mellin transform and applications to the Schrödinger equation for certain classes of potentials