A bifurcation theorem for potential operators