Principles of structural geology on rocky planets