Mechanism of vibrational excitation in inelastic photoemission from solid surfaces