Automatic Seal Impression Identification Using Three-Dimensional Reference Seals