Canonical forms of 2 × 2 × 2 and 2 × 2 × 2 × 2 symmetric tensors over prime fields