Optimal clustering for damage detection in WSN-based SHM