Measuring electromagnetic field characteristics