Nanowire arrays with controlled structure profiles for maximizing optical collection efficiency