VGBench: Evaluating Large Language Models on Vector Graphics Understanding and Generation