Advances in measuring ocean salinity with an optical sensor