Multiple - valued programmable logic array based on a resonant - tunneling diode model