In situ characterisation of nanoscale electromechanical properties of quasi-two-dimensional MoS2 and MoO3