Generic one-loop matching conditions for rare meson decays