Modal formulation for scattering on the absorbing silicon nanowire arrays for photovoltaic applications