A computational model for the hot-filament chemical vapour deposition process to produce diamond films