Energy extraction of two flapping foils with tandem configurations and vortex interactions