Surface topography and texture restoration from sectional optical imaging by focus analysis