Validation functions for Swedish national identification numbers