Nets with Unreliable Hidden Nodes Learn Error-Correcting Codes