Single particles as resonators for thermomechanical analysis