Development and instrumentation of an integrated three–dimensional optical testing system for application in integrated circuit packaging