One-step hyperentanglement purification and hyperdistillation with linear optics