Scanning probe microscopy for roughness analysis of complex shape samples