Transition from isolated to collective modes in plasmonic oligomers.