1-form symmetries of 4d N=2 class S theories