What is the difference between a nondeterministic finite automaton (NFA) and a deterministic finite automaton (DFA)? Can you provide an example to illustrate the difference?