Light-induced irreversible structural phase transition in trilayer graphene