Text this: Integrity basis for a second-order and a fourth-order tensor