Vibrational relaxation of trapped molecules