Newburyport voters head to the polls on primary day