Dissipative particle dynamics for a harmonic chain: A first-principles derivation.