Scientists discover new method for studying molecules