In-situ impedance matching in Nb/Nb2O5 /PtIr memristive nanojunctions