Nonlinearity-mediated digitization and amplification in electromechanical phonon-cavity systems