Study of the rare Bs0 and B0 decays into the π+π-μ+μ- final state