Photoluminescence measurements to study conductance switching and data storage in polythiophene based devices