How Amy Pond became Nebula