Datta-and-Das spin transistor controlled by a high-frequency electromagnetic field