Solving clustered low-rank semidefinite programs arising from polynomial optimization