Polyelectrolyte complex formation between alginate and chitosan as a function of pH