Highly-excited atoms in the electromagnetic field