Role of habitat in determining macroinvertebrate production in an intermittent‐stream system