Species–energy relationships and habitat complexity in bird communities