Isotropic integrity bases for vectors and second-order tensors