Hopkinton Police Chief Palmer sworn in