The derivative method of critical-angle refractometry for attenuating media