Confocal techniques for surface profile measurements - methodology and instrumentation