Theory of elasticity and electric polarization effects in the group-III nitrides