Biomaterial matrix with tunable hygroscopic properties