Optically transparent and electrically conductive layer consisting of a diamond layer with metallic irregular networks, a multilayer structure for a photovoltaic cell, and a photovoltaic cell