Vics hang on for tense NSW one-day cup win