Functional nanostructures in analytical chemistry: new insights into the optical and electrochemical sensing of animal hormones in food, environmental and biological samples