Isovector and isoscalar pairing in the nuclear shell model