Measuring or controlling thickness of liquid films