Three-dimensional simulations of undulatory and amoeboid swimmers in viscoelastic fluids.