Method for detecting an electric arc occurring between a railway overhead contact line and a railway traction unit and corresponding detection arrangement