Fulham needed penalties to avoid a shock defeat by League One Wycombe and progress to the quarter-finals of the EFL Cup.