Learning to Predict 3D Rotational Dynamics from Images of a Rigid Body with Unknown Mass Distribution