Spatial scale and ecological relationships between the macroinvertebrate communities of stony habitats of streams and lakes