Stress-optical analysis of fluids