Exact results for SU(3) spin chains: trimer states, valence bond solids, and their parent Hamiltonians