Scientists have figured out how to apologize correctly