Pitching-motion-activated flapping foil near solid walls for power extraction: A numerical investigation