High gain beam compression in new-generation thin-film x-ray waveguides