Study of the rare decays of Bs0 and B0 mesons into muon pairs using data collected during 2015 and 2016 with the ATLAS detector