Added variable length of the functional sections.

The voltage deflection error is now computed over the normalized
lengths of the functional sections.