Absence of the Lavrentiev phenomenon for generalized double-phase functionals with variable matrix weights | Synapse