Non-linear optical measurement of the twist elastic constant in thermotropic and DNA lyotropic chiral nematics