Interplay between Rashba interaction and electromagnetic field in the edge states of a two-dimensional topological insulator