Theory of epithelial cell shape transitions induced by mechanoactive chemical gradients