Jordan Reed agrees to one-year contract with 49ers