Molecular switch devices realised by photochromic oligothiophenes