Edge excitons in a 2D topological insulator in a magnetic field