Complete electroweak matching for radiative B decays