Functional differentiation of human pluripotent stem cells on a chip