Wave-packet revival for the Schrödinger equation with position-dependent mass