Particle conversions beyond the WKB approximation and solar-induced gravitational waves from dark photon dark matter