Resistive switching in diamondoid thin films