Spinning stars 'the new way to weigh planets'