Control of cell shape and locomotion by external calcium