Dissociative electron attachment to formamide: Direct and indirect pathways from resonant intermediates