Pattern Recognition and Machine Learning