Gravitational, electromagnetic, and transition form factors of the pion