Molecule Joint Auto-Encoding: Trajectory Pretraining with 2D and 3D Diffusion