Random diode arrays and mesoscale physics of large-area semiconductor devices