Uniform distortions and generalized elasticity of liquid crystals