Reconfigurable logic in nanoelectronic switching networks