Younes Ebnoutalib scored three times in the final 23 minutes as Frankfurt pulled away from Dortmund in a round-of-16 thriller.