3-D modeling of triple junction solar cells on 2-D gratings with optimized intermediate and back reflectors