Wexford overcome Longford after extra-time