Elevating electron energy gain and betatron x-ray emission in proton-driven wakefield acceleration | Synapse