A structural rule of polyhedral boranes and heteroboranes