First-principles calculations of the electronic structure and pressure-induced magnetic transition in siderite FeCO3