Evolution of spin excitations from bulk to monolayer FeSe