How learning to abstract shapes neural sound representations