Mass generation from tachyon condensation for vector fields on D-branes