Towards theoretical analysis of optoelectronic performance of uniform and random metallic nanowire layers