Direct-bonded diamond membranes for heterogeneous quantum and electronic technologies