Use index symmetries of a general tensor to determine the independent components