Dynamics of dissociative electron attachment to ammonia