Effects of free surface on a flapping-foil based ocean current energy extractor