Neural Networks Implementation for Analysis and Control of Heat Exchange Process in a Metal Foam Prototypal Device