The nucleus measures shape changes for cellular proprioception to control dynamic cell behavior