Measurement of position and orientation of optical elements in interferometric gravity wave detectors