Photodynamics of the excited states of trimethylamine in a supersonic beam