Thai king marries days before coronation