Linking habitat structure to life history strategy: insights from a Mediterranean killifish