Search for $ {\text{B}}_{\text{s}}^0 $ → μ + μ − and B0 → μ + μ − decays