Theory of spin waves in ultrathin ferromagnetic films: The case of Co on Cu(100)