Diagnostics of electromagnetic waves in the vacuum