An on-chip study on the influence of geometrical confinement and chemical gradient on cell polarity.