Reduction of surface recombination current by optimized ledge technology