Minerals and the emergence of life