A simple and complete model of thalamocortical interactions for neuroengineering applications