Higher harmonics in the Josephson effect