Effects of Al and Fe solubility on the magnetofunctional properties of AlFe2B2