TReF-6: Inferring Task-Relevant Frames from a Single Demonstration for One-Shot Skill Generalization