Energy dependence of photodissociation dynamics of trimethylamine over the S2 and S1 excited states