a man inspects a diamond using a smartphone based microscope .