Mechanical principles of nuclear shaping and positioning