Towards differentiable beam dynamics modeling in BLAST/ImpactX | Synapse