Hydrodynamics of a biologically inspired tandem flapping foil configuration