Single-molecule folding mechanism of an EF-hand neuronal calcium sensor