Power-law scaling for solid-state dewetting of thin films: an Onsager variational approach