The Eyring-Kramers law for potentials with nonquadratic saddles