Nucleon electromagnetic form factors in twisted mass lattice QCD