Diamond Nanothermometry Using a Machine Learning Approach