Effects of anions on the photocatalytic and photoelectrocatalytic degradation of reactive dye in a packed-bed reactor