Vogelsong agrees to one-year contract with Giants