A modal approach to optimally place dampers in framed structures