Synchrotron-based x-ray fluorescence applied to invertebrates to investigate the role of essential trace elements in a biological process