Selection of reference signatures for automatic signature verification