Tunable magnetic order in transition metal doped, layered, and anisotropic Bi2O2Se : Competition between exchange interaction mechanisms