Heatsealing and high-frequency welding of plastics