In situ generation of pH gradients in microfluidic devices for biofabrication of freestanding, semi-permeable chitosan membranes.