The adaptive value of habitat preferences from a multi-scale spatial perspective: insights from marsh-nesting avian species