Oxygen pressure dependent resistance-switching properties of nickel-oxide films grown by using a pulsed laser deposition method