Measuing light absorbance through samples