A quantitative model for a nanoscale switch accurately predicts thermal actuation behavior