Liquid sloshing in a swaying/rolling rectangular tank with a flexible porous elastic baffle