How does kidney function affect calcium levels?