Versatile cells for optical studies in fluids