Charge transfer drives anomalous phase transition in ceria