Search for the rare decays B0s -> mu+ mu- and B0 -> mu+ mu-