General-relativistic Simulations of Four States of Accretion onto Millisecond Pulsars