Direct method of measuring ac losses in superconducting tapes, simultaneously subjected to ac current and ac magnetic field