Implications of b → sγ on the anomalous electromagnetic couplings of gauge bosons and quarks