Automatic 2D-3D vision based assessment of the attitude of a train pantograph