Mass. doctor wins Green Party's presidential nod