A pocket-factor–triggered conformational switch in the hepatitis B virus capsid