Effect of polymerization on the boson peak, from liquid to glass