Large eddy simulation of turbulent flow over and through a rough permeable bed