Anatomy of electrical signals and dc-voltage line shape in spin-torque ferromagnetic resonance