Current profiles and ac losses of a superconducting strip with an elliptic cross-section in a perpendicular magnetic field