Methods, systems, and computer program products for optimizing a probe geometry for spectroscopic measurement in a turbid medium are provided. The functional layers expand differently than the structural layer of the cantilever beam causing the beam to bend in response to exposure to infrared radiation. The method is based on a combination of an appropriate three-dimensional structure and a single and directional deposition of conductive material. A projection of the first radiating patch on the ground conductor is located on one side of a projection of the shorting patch on the ground conductor. One aspect of the method comprises the steps of detecting a selected screen position and a time period of a selection operation at the screen position, modifying weights of the road segments in dependence on the detected screen position and the time period, and calculating a route, manipulated in relation to the precalculated route, on the basis of the modified weights.