Franz Joseph, Wilhelm and crown prince