On the generation of long-period second order free waves due to changes in the bottom profile