Derivation of a Schrödinger-like equation for elastic waves in granular media