A soliton model of the non metal-metal transition in implanted organic (CH)x and inorganic (LiF) materials