Exploring and utilising the effects of environmental factors on memristor behaviour