A simple imaging-based technique for quantifying haze and transmittance of materials