Statically unstable layers produced by overturning internal gravity waves