Theoretical Prediction of the Fractional ac Josephson Effect in p- and d-Wave Superconductors