THIN-Bayes: Platform-Aware Machine Learning for Low-End IoT Devices