AC losses in composite superconducting wires