Charm-loop effect in B → K(*)ℓ+ℓ− and B → K*γ