Modeling friction force avalanches in molybdenum disulfide and spiking neuronal avalanches in mouse cortex