Faranoff-Riley type I jet deceleration at density discontinuities