On the determination of the type of error function for electro-optical and radio-geodetic measurements