Analysis of textured surfaces for photovoltaics