Analysis of the line shape of electrically detected ferromagnetic resonance