Analysis of biomimetic stream energy device based on flapping foils