UV photodestruction of CH bonds and the evolution of the 3.4 mu m feature carrier. I. The case of aliphatic and aromatic molecular species