Lepton-flavor violation and lepton-flavor-universality violation in b and c decays