Prediction of chaos in a Josephson junction by the Melnikov-function technique.