Alternating direction method of multipliers for polynomial optimization