Potential recovery in a one-dimensional wave equation with discontinuous main coefficient (Mathematical control and related fields, 2025)