A Survey on Machine Learning in Hardware Security