Instabilities of a shear–thinning fluid falling over an undulating porous layer