Energy harvesting of a heaving and forward pitching wing with a passively actuated trailing edge