Quantifying the interaction between food density and habitat structure in determining patch selection