HP to pay $57 million in WebOS-related class-action settlement