Inter-layer distance optimisation for a light-based flowmeter by means of CFD