The Leiden MEMS tribometer: real time dynamic friction loop measurements with an on-chip tribometer