Gap closure in semiconducting APtSn cubic compounds (A = U, Th or Zr)