Rings of invariants of 2×2 matrices in positive characteristic