Flutter to tumble transition of buoyant spheres triggered by rotational inertia changes