What is the role of calcium in muscle function?