Scaling of micro- and nanodevices actuated by Casimir forces