Smart gun technology could reduce accidental shootings